package Mangos::DB::Mangos::Playercreateinfo;

use strict;

use base qw(Mangos::DB::Mangos);

__PACKAGE__->meta->setup
(
    table   => 'playercreateinfo',

    columns => 
    [
        race       => { type => 'integer', not_null => 1 },
        class      => { type => 'integer', not_null => 1 },
        map        => { type => 'integer', default => '0', not_null => 1 },
        zone       => { type => 'integer', default => '0', not_null => 1 },
        position_x => { type => 'float', default => '0', not_null => 1, precision => 32 },
        position_y => { type => 'float', default => '0', not_null => 1, precision => 32 },
        position_z => { type => 'float', default => '0', not_null => 1, precision => 32 },
    ],

    primary_key_columns => [ 'race', 'class' ],
);

1;

package Mangos::DB::Mangos::Playercreateinfo::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Mangos::Playercreateinfo' }

__PACKAGE__->make_manager_methods('playercreateinfo');

1;
